package tool

import play.api.libs.json.Json
import shared.VarTool
import tool.Pojo.MissionData

/**
 * Created by yz on 26/9/2021
 */
trait ProjectTool {

  def getArgJson(data: MissionData) = {
    val dbStr = VarTool.dbMap(data.db)
    Json.obj("数据库" -> dbStr, "trim5" -> data.trim5, "trim3" -> data.trim3,
      "线程数" -> data.threadNum)
  }


}
